/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const processRouter = {
  path: '/process',
  component: Layout,
  name: 'process',
  redirect: '/process/index',
  meta: {
    title: '加工管理',
    icon: 'table',
    roles:['管理员','仓库管理员']
  },
  children: [
    {
      path: 'index',
      // component: () => import('@/views/process/index'),
      component: (resolve) => require(['@/views/process/index'], resolve),
      name: 'processIndex',
      meta: { title: '加工单' , roles:['管理员','仓库管理员']}
    },
    {
      path: 'return',
      // component: () => import('@/views/process/index'),
      component: (resolve) => require(['@/views/process/processReturn'], resolve),
      name: 'processReturn',
      meta: { title: '熟坯入库' , roles:['管理员','仓库管理员']}
    },
    {
        path: 'processStatistics',
        component: (resolve) => require(['@/views/process/processStatistics'], resolve),
        // component: () => import('@/views/process/processStatistics'),
        name: 'processStatistics',
        meta: { title: '加工统计' , roles:['管理员', '仓库管理员']}
    },
  ]
}
export default processRouter
